-
Notifications
You must be signed in to change notification settings - Fork 3k
New guide to create your first AI Java application #48136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
|
🎊 PR Preview fb5b21c has been successfully built and deployed to https://quarkus-pr-main-48136-preview.surge.sh/version/main/guides/
|
|
See my comment on the PR. I'm not opposed to this (might not be a bad idea at all), but generally I'm not sure we've included guides in Quarkus core for things that were not part of Quarkus core (quarkus-langchain4j isn't part of Quarkus core). An issue that may arise having it here though is that the lifecycle of quarkus-langchain4j is different than for quarkus core, so keeping it up to date may be challenging. |
|
Maybe this has been communicated with @maxandersen or @cescoffier. |
I think it's worth it given how important the AI use case is nowadays. Now yes, the lifecycle is a bit problematic. I wonder if it's a guide we should have in the LangChain4j doc and then make sure we have it included in the search engine. But not sure it's ideal either. I think we really need to sort this out as this initiative has a a lot of value IMHO. |
|
No. It's not something I'm specific aware of. We have though discussed making sure Quarkus.io has more AI content - one is that when searching it now also includes quarkiverse Other is to build up Quarkus.ai to have dedicated ai content. @lauracowen given searching for ai or langchain4j gives the recent l4j content is this guide needed ? Is there a specific page you think it's missing or ? |
|
My thinking was that if you go to Quarkus.io, as the online home of Quarkus, AI is barely mentioned. Yet, as mentioned above, it's an important use case for Java developers to at least explore and learn about right now. It's good that the search exposes quarkiverse content but, not being on the main site, it doesn't feel like Quarkus is confident about supporting/enabling AI apps, when I think it actually is. I didn't appreciate the lifecycle differences, so I don't know the implications of that. No, sorry, the guide wasn't discussed specifically with @maxandersen or @cescoffier - it came up in conversations with @myfear about the lack of introductory AI info to point developers to on Quarkus.io. |
This comment has been minimized.
This comment has been minimized.
30c985a to
7def0f9
Compare
Status for workflow
|
|
@myfear do you think we should include this on quarkus.ai? |
|
@cescoffier based on our discussion this should potentially go on the L4j doc as a guide. |
|
@myfear Unfortunately, I'm not able to build the jekyll web site - gem issues all the way. Any tip? |
|
I was able to get it working. |


As there are no guides to creating AI Java applications with LangChain4j on the quarkus.io website, I've created this simple guide for consideration. I'm aware that there is doc on the quarkiverse (and I'm going to attempt to address some of the issues raised on that next) but the absence of AI guides on the main quarkus.io website seems like a gap.
The sample code is based on a modified version of the poem generator sample code used elsewhere. I've created a quickstart of the app in this PR: quarkusio/quarkus-quickstarts#1537
I've run the docs module build as instructed and run Vale with the following output:
I think all these are fine in context as they are.
I also ran a local container build of the site to preview the guide and check the includes were pulled in correctly - they seem to be:

(re-created from #48128 to clean up commits)